import { RouteConfig } from 'vue-router'

const demo: Array<RouteConfig> = [
  { path: '/', redirect: '/demo-form' },
  {
    path: '/demo-nav',
    name: 'demo-nav',
    component: () => import('@/views/demo/demo-nav.vue'),
    children: [
      {
        path: '/demo-form',
        name: 'demo-form',
        component: () => import('@/views/demo/demo-form.vue')
      },
      {
        path: '/demo-table',
        name: 'demo-table',
        component: () => import('@/views/demo/demo-table.vue')
      }
    ]
  }
]

export default demo
